Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum





File already Exist
~Andy Asaponelyoopsi 01/08/2004 11:38 AM
Domino Designer 6.0.1 All Platforms


I am exporting data to excel by lotus script thru agent.I am saving the file with name
FlName=Trim("C:\SapExp\Exp")+Trim(Str(Day(Today())))+Trim(Str(Month(Today()))) +Trim(".xls")
xlBook.saveas(FlName) ' Saving file as Exp Date
but i want if file is already exist then it abort the rest of code and come out of agent.
Please help me if anyone can
Thank You.

Go back